﻿using MYData.Entity.DomainModels.ApiEntity.Input;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MYData.Entity.DomainModels
{
    public class Holidays
    {
        [Display(Name = "请假天数")]
        [MaxLength(64)]
        [Column(TypeName = "Int32")]
        [Required(AllowEmptyStrings = false)]
        [SearchAttribue(true)]
        public int Days { get; set; }

        [Display(Name = "主键")]
        [SearchAttribue(false)]
        public int Id { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [Display(Name = "是否删除")]
        public bool IsDeleted { get; set; }
    }

    public class SearchAttribue : Attribute
    {
        private bool _isSearch = false;
        public SearchAttribue(bool isSearch)
        {
            _isSearch = isSearch;
        }
    }
}
